<html>
<head><meta charset="utf-8"><title>Get debug output from `./x.py test` · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Get.20debug.20output.20from.20.60.2E.2Fx.2Epy.20test.60.html">Get debug output from `./x.py test`</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="222836607"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Get%20debug%20output%20from%20%60./x.py%20test%60/near/222836607" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Kevin Tran <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Get.20debug.20output.20from.20.60.2E.2Fx.2Epy.20test.60.html#222836607">(Jan 15 2021 at 09:35)</a>:</h4>
<p>How do I get the output from <code>debug!</code>calls when running <code>RUSTC_DOC=rustc_mir::borrow_check::diagnostics=debug ./x.py test path/to/file.rs</code>?</p>



<a name="222838308"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Get%20debug%20output%20from%20%60./x.py%20test%60/near/222838308" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Get.20debug.20output.20from.20.60.2E.2Fx.2Epy.20test.60.html#222838308">(Jan 15 2021 at 09:57)</a>:</h4>
<p>It needs to be <code>RUSTC_LOG</code> and not <code>RUSTC_DOC</code>. Also I think you need to set <code>debug-logging</code> to true in <code>config.toml</code> for <code>debug!()</code> to show.</p>



<a name="222839455"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Get%20debug%20output%20from%20%60./x.py%20test%60/near/222839455" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Kevin Tran <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Get.20debug.20output.20from.20.60.2E.2Fx.2Epy.20test.60.html#222839455">(Jan 15 2021 at 10:11)</a>:</h4>
<p>ughhh a typo. thanks</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>